home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / ansi / hppa / limits.h < prev    next >
C/C++ Source or Header  |  1994-06-20  |  2KB  |  59 lines

  1. #ifndef _ANSI_HPPA_LIMITS_H
  2. #define _ANSI_HPPA_LIMITS_H
  3.  
  4. /* Number of bits in a `char'.  */
  5. #define CHAR_BIT 8
  6.  
  7. /* No multibyte characters supported yet.  */
  8. #define MB_LEN_MAX 1
  9.  
  10. /* Minimum and maximum values a `signed char' can hold.  */
  11. #define SCHAR_MIN (-128)
  12. #define SCHAR_MAX 127
  13.  
  14. /* Maximum value an `unsigned char' can hold.  (Minimum is 0).  */
  15. #define UCHAR_MAX 255
  16.  
  17. /* Minimum and maximum values a `char' can hold.  */
  18. #ifdef __CHAR_UNSIGNED__
  19. #define CHAR_MIN 0
  20. #define CHAR_MAX 255
  21. #else
  22. #define CHAR_MIN (-128)
  23. #define CHAR_MAX 127
  24. #endif
  25.  
  26. /* Minimum and maximum values a `signed short int' can hold.  */
  27. #define SHRT_MIN (-32768)
  28. #define SHRT_MAX 32767
  29.  
  30. /* Maximum value an `unsigned short int' can hold.  (Minimum is 0).  */
  31. #define USHRT_MAX 65535
  32.  
  33. /* Minimum and maximum values a `signed int' can hold.  */
  34. #define INT_MIN (-INT_MAX-1)
  35. #define INT_MAX 2147483647
  36.  
  37. /* Maximum value an `unsigned int' can hold.  (Minimum is 0).  */
  38. #define UINT_MAX 4294967295U
  39.  
  40. /* Minimum and maximum values a `signed long int' can hold. (Same as `int').  */
  41. #define LONG_MIN (-LONG_MAX-1)
  42. #define LONG_MAX 2147483647L
  43.  
  44. /* Maximum value an `unsigned long int' can hold.  (Minimum is 0).  */
  45. #define ULONG_MAX 4294967295UL
  46.  
  47. #ifndef __STRICT_ANSI__
  48.  
  49. /* Minimum and maximum values a `signed long long int' can hold.  */
  50. #define LONG_LONG_MIN (-LONG_LONG_MAX-1)
  51. #define LONG_LONG_MAX 9223372036854775807LL
  52.  
  53. /* Maximum value an `unsigned long long int' can hold.  (Minimum is 0).  */
  54. #define ULONG_LONG_MAX 18446744073709551615ULL
  55.  
  56. #endif    /* !__STRICT_ANSI__ */
  57.  
  58. #endif /* _ANSI_HPPA_LIMITS_H */
  59.